package com.dalei.vdsmanager.management.vds.action;

import com.dalei.vdsmanager.management.vds.service.VDSDeviceInformationService;
import com.opensymphony.xwork2.ActionSupport;

public class RemoveVDSDeviceInformationAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4970237277356028158L;
	
	private VDSDeviceInformationService vdsDeviceInformationService;
	
	private int id;

	public VDSDeviceInformationService getVdsDeviceInformationService() {
		return vdsDeviceInformationService;
	}

	public void setVdsDeviceInformationService(
			VDSDeviceInformationService vdsDeviceInformationService) {
		this.vdsDeviceInformationService = vdsDeviceInformationService;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		vdsDeviceInformationService.removeVDSDeviceInformation(id);
		return SUCCESS;
	}
}
